@()(implicit request: RequestHeader)
@main("分析管理")("missionManage") {

	<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/tableFilter.css")">

	<script src="@routes.Assets.at("bootstrap-table-master/dist/extensions/filter-control/my-bootstrap-table-filter-control.js")" type="text/javascript"></script>

	<style>
			.genome-pre {
				white-space: pre-wrap;
				word-wrap: break-word;
				border: 0px solid #ccc;
				background-color: white;
			}

			select:not([multiple]) {
				-webkit-appearance: none;
				-moz-appearance: none;
				background-position: right 50%;
				background-repeat: no-repeat;
				background-image: url();
				padding: .5em;
				padding-right: 1.5em
			}

	</style>
	<div class="page-content">

		<div class="page-bar">
			<ul class="page-breadcrumb">
				<li>
					<i class="fa fa fa-table"></i>
					<span>分析管理</span>
				</li>
			</ul>
		</div>

		<div class="row-fluid">
			<div class="row">
				<div class="col-md-12 col-sm-12">
					<div class="portlet blue-dark box">
						<div class="portlet-title">
							<div class="caption">
								分析管理
							</div>
						</div>

						<div class="portlet-body">
							<div class="table-responsive">

								<div style="display: none;
									margin-bottom: 10px">筛选条件：
									<span id="filterCondition">

										<span class="eachFilterCondition" style="display: none">
											<span >Gene ID</span>
											<span style="color: red">LIKE</span>
											AT
											<sup style="" class="mySup" onclick="SampleManage.removeCondition">
												<i class="fa fa-times-circle"></i>
											</sup>
										</span>

									</span>
								</div>

								<div style="display: none;
									margin-bottom: 10px">排序条件：
									<span id="sortCondition">

										<span class="eachFilterCondition" style="display: block">
											<span >Gene ID ,</span>
											<span style="color: red">升序</span>
											<sup style="" class="mySup" onclick="SampleManage.removeCondition">
												<i class="fa fa-times-circle"></i>
											</sup>
										</span>

									</span>
								</div>

								<table class="display table table-bordered" id="missionTable" data-pagination="true"
								data-page-list="[10, 25, 50, 100, all]" >
									<thead>

										<tr class="myTr">

										</tr>

									</thead>
								</table>

								<div id="allFilterContent">

								</div>

							</div>
						</div>
					</div>
				</div>
			</div>


		</div>

		<div id="modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog" style="width: 650px">
				<div class="modal-content">
					<div class="modal-header bg-primary">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
						<h4 class="modal-title">
							<i class="fa fa-wrench"></i>
							<span id="lblAddTitle" style="font-weight: bold">保存参数方案</span>
						</h4>
					</div>
					<form class="form-horizontal" id="configForm" action="" data-toggle="validator">
						<div class="modal-body">
							<div class="row-fluid">

								<div class="form-group">
									<label class="control-label col-sm-3">分析名称:</label>
									<div class="col-sm-6">
										<input class="form-control" name="missionName" readonly/>
									</div>
								</div>


								<div class="form-group">
									<label class="control-label col-sm-3">参数方案名:</label>
									<div class="col-sm-6">
										<input class="form-control" name="configName" />
									</div>
								</div>

							</div>
						</div>
						<div class="modal-footer bg-info">
							<input type="hidden" id="id" name="id" />
							<button type="button" class="btn blue" onclick="MissionManage.saveConfig">
								确定</button>
							<button type="button" class="btn green" data-dismiss="modal">
								取消</button>
						</div>
					</form>
				</div>
			</div>
		</div>

		<div id="updateModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog" style="width: 650px">
				<div class="modal-content">
					<div class="modal-header bg-primary">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
						<h4 class="modal-title">
							<i class="fa fa-edit"></i>
							<span id="lblAddTitle" style="font-weight: bold">修改分析名称</span>
						</h4>
					</div>
					<form class="form-horizontal" id="updateForm" action="" data-toggle="validator">
						<div class="modal-body">
							<div class="row-fluid">

								<input hidden name="missionId">

								<div class="form-group">
									<label class="control-label col-sm-3">原始分析名称:</label>
									<div class="col-sm-6">
										<input class="form-control" name="orignalMissionName" readonly/>
									</div>
								</div>


								<div class="form-group">
									<label class="control-label col-sm-3">新分析名称:</label>
									<div class="col-sm-6">
										<input class="form-control" name="missionName" />
									</div>
								</div>

							</div>
						</div>
						<div class="modal-footer bg-info">
							<input type="hidden" id="id" name="id" />
							<button type="button" class="btn blue" onclick="MissionManage.updateName">
								确定</button>
							<button type="button" class="btn green" data-dismiss="modal">
								取消</button>
						</div>
					</form>
				</div>
			</div>
		</div>


	</div>


	<script>

			$(function () {
				MissionManage.init


			})
	</script>


}